package com.example.chat.model.ro;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.*;
import javax.validation.constraints.NotBlank;

/**
 * @author pq
 * @date 2022/8/14 1:18
 * @description
 * @modified
 **/
@Data
@ApiModel(description = "用户新增RO")
public class UserRo {

    /**
     * 用户编号
     */
    @ApiModelProperty(value = "userNumber")
    @NotBlank(message = "用户账号不能为空")
    private String account;

    /**
     * 用户昵称
     */
    @ApiModelProperty(value = "nickname")
    @NotBlank(message = "昵称不能为空")
    private String nickname;

    /**
     * 头像url
     */
    @ApiModelProperty(value = "userAvatar")
    @NotBlank(message = "头像不能为空")
    private String avatar;
}
